package cn.bdqn.sptparent.web.mq;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {
    public static final String SAVE_TOKEN = "mq:redis:token";
    public static final String SAVE_HTML = "mq:redis:html";

    // 简单的消息队列 boot_hello_queue
    @Bean(SAVE_TOKEN)
    public Queue queueMQ(){
        return new Queue(SAVE_TOKEN,true,false,false,null);
    }
    @Bean(SAVE_HTML)
    public Queue queueHTML(){
        return new Queue(SAVE_HTML,true,false,false,null);
    }
}
